import request from '@/utils/request'

export function getAdminUserPage(search) {
    return request({
      url: 'department/GetdepartmentList',
      method: 'post',
      data: search
    })
}


export function AdminUserDelete(id) {
  return request({
    url: 'department/departmentDelete?id='+id,
    method: 'post',
    data: id
  })
}

export function adminUserAdd(userInfo) {
  return request({
    url: 'department/departmentAdd',
    method: 'post',
    data: userInfo
  })
}
export function DdepartmentUpdate(userInfo) {
  return request({
    url: 'department/departmentUpdate',
    method: 'post',
    data: userInfo
  })
}

export function getdepartmentFantian(id) {
  return request({
    // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
    url: 'department/departmentFantian?id=' + id,
    method: 'post',
    data: id
  })
}
